package com.rpc.exception;

import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.ToString;

/**
 * @author yangzhuoleo
 * @Description ${Description}
 * @create 2017-12-09 17:05
 **/
@ToString
@RequiredArgsConstructor
public enum ErrCode {

    /*成功消息*/
    SUCCESS(0, "sucess"),
    /*参数错误*/
    PARAM_ERROR(10001, "参数错误");

    @Getter
    @NonNull
    private int code;

    @Getter
    @NonNull
    private String msg;


}
